import { createRouter, createWebHashHistory } from 'vue-router'
import Abom from '../page/Abom.vue'
import UpgradeRecord from '../page/UpgradeRecord.vue'

const routerHistory = createWebHashHistory()
const router = createRouter({
  history: routerHistory,
  routes: [
    {
      path: '/',
      redirect: 'abom',
      children: [
        {
          name: 'abom',
          path: 'abom',
          component: Abom,
        },
        {
          name: 'upgradeRecord',
          path: 'upgradeRecord',
          component: UpgradeRecord
        }
      ]
    }
  ]
})

export default router
